package com.xquant.trade.account.mapper;

import com.xquant.trade.account.entity.Counterparty;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author yunnuo.yang
 * @Date 2020/10/16 11:22
 * @Description
 **/
@Repository
public interface CounterpartyMapper {
    List<Counterparty> queryCounterpartyByPage(Map<String, Object> param);
    List<Counterparty> queryCounterpartyCombox(Map<String, Object> param);
    List<Counterparty> queryCounterparty(Map<String, Object> param);
    List<Counterparty> queryByPartyId(Map<String, Object> param);
    void insertCounterparty(Counterparty cp);
    void updateCounterparty(Counterparty cp);
    void updateCounterpartyStatus(Counterparty cp);
    void deleteCounterparty(Counterparty cp);
    List<Map> queryCounterpartyTrade(Counterparty cp);
    Counterparty checkPartyName(String partyName);
}
